/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ig.ejb.metrica.da.session.editor;

import ig.ejb.metrica.da.session.editor.dto.ColumnaDTO;
import ig.ejb.metrica.da.session.editor.dto.TablaDTO;
import java.rmi.RemoteException;
import java.sql.Timestamp;
import java.util.Map;

/**
 *
 * @author jsanchez
 */
public interface BusinessEditorSBean {

    public java.util.List<TablaDTO> getAllTables() throws Exception,java.rmi.RemoteException;

    public java.util.List<ColumnaDTO> getColumnTables(String nameTable) throws Exception,java.rmi.RemoteException;

    public Map<String,Object> getData(TablaDTO dTO) throws Exception,java.rmi.RemoteException;

    public java.util.List<java.util.Map> getData(String nameTable,Timestamp fechaCorte) throws Exception,java.rmi.RemoteException;

    public java.util.List<java.util.Map> getDataODato(int idODato,String lLabel, String lValue, int more20) throws Exception,java.rmi.RemoteException;

    public void update(TablaDTO tablaDTO) throws Exception,java.rmi.RemoteException;

    public int updateRecord(String tabla, String columna, int id, Object data) throws Exception,java.rmi.RemoteException;

    public int createRecord(String tabla, Map data) throws Exception, RemoteException;

    public int deleteRecord(int id, String tabla) throws Exception, RemoteException;

    public void delete(TablaDTO tablaDTO) throws Exception, RemoteException;
}
